#include "d3dx9math.h"

// DEFINES
#define COM_RELEASE(X) {if ((X) != NULL) {(X)->Release(); (X) = NULL;}} // macro for release the com objects
#define FREE_MEMORY(X) {if ((X) != NULL) {free(X); (X) = NULL;}} // macro for release allocated memory

#define DEFAULT_SIMPLEMESH_SHADERS 0
#define DEFAULT_VERTEX_FVF (D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_DIFFUSE | D3DFVF_TEX1)

// STRUCTS
#ifndef UTIL_H
#define UTIL_H
struct DefaultVertex
{
	D3DXVECTOR3 pos;
	D3DXVECTOR3 normal;
    DWORD color;
	float fU, fV; // texture coords
};
#endif
